// Code generated by ent, DO NOT EDIT.

package region

import (
	"server/components/models/ent/predicate"

	"entgo.io/ent/dialect/sql"
	"entgo.io/ent/dialect/sql/sqlgraph"
)

// ID filters vertices based on their ID field.
func ID(id int64) predicate.Region {
	return predicate.Region(sql.FieldEQ(FieldID, id))
}

// IDEQ applies the EQ predicate on the ID field.
func IDEQ(id int64) predicate.Region {
	return predicate.Region(sql.FieldEQ(FieldID, id))
}

// IDNEQ applies the NEQ predicate on the ID field.
func IDNEQ(id int64) predicate.Region {
	return predicate.Region(sql.FieldNEQ(FieldID, id))
}

// IDIn applies the In predicate on the ID field.
func IDIn(ids ...int64) predicate.Region {
	return predicate.Region(sql.FieldIn(FieldID, ids...))
}

// IDNotIn applies the NotIn predicate on the ID field.
func IDNotIn(ids ...int64) predicate.Region {
	return predicate.Region(sql.FieldNotIn(FieldID, ids...))
}

// IDGT applies the GT predicate on the ID field.
func IDGT(id int64) predicate.Region {
	return predicate.Region(sql.FieldGT(FieldID, id))
}

// IDGTE applies the GTE predicate on the ID field.
func IDGTE(id int64) predicate.Region {
	return predicate.Region(sql.FieldGTE(FieldID, id))
}

// IDLT applies the LT predicate on the ID field.
func IDLT(id int64) predicate.Region {
	return predicate.Region(sql.FieldLT(FieldID, id))
}

// IDLTE applies the LTE predicate on the ID field.
func IDLTE(id int64) predicate.Region {
	return predicate.Region(sql.FieldLTE(FieldID, id))
}

// Name applies equality check predicate on the "name" field. It's identical to NameEQ.
func Name(v string) predicate.Region {
	return predicate.Region(sql.FieldEQ(FieldName, v))
}

// ParentRegion applies equality check predicate on the "parentRegion" field. It's identical to ParentRegionEQ.
func ParentRegion(v string) predicate.Region {
	return predicate.Region(sql.FieldEQ(FieldParentRegion, v))
}

// Latitude1 applies equality check predicate on the "latitude1" field. It's identical to Latitude1EQ.
func Latitude1(v float64) predicate.Region {
	return predicate.Region(sql.FieldEQ(FieldLatitude1, v))
}

// Longitude1 applies equality check predicate on the "longitude1" field. It's identical to Longitude1EQ.
func Longitude1(v float64) predicate.Region {
	return predicate.Region(sql.FieldEQ(FieldLongitude1, v))
}

// Latitude2 applies equality check predicate on the "latitude2" field. It's identical to Latitude2EQ.
func Latitude2(v float64) predicate.Region {
	return predicate.Region(sql.FieldEQ(FieldLatitude2, v))
}

// Longitude2 applies equality check predicate on the "longitude2" field. It's identical to Longitude2EQ.
func Longitude2(v float64) predicate.Region {
	return predicate.Region(sql.FieldEQ(FieldLongitude2, v))
}

// NameEQ applies the EQ predicate on the "name" field.
func NameEQ(v string) predicate.Region {
	return predicate.Region(sql.FieldEQ(FieldName, v))
}

// NameNEQ applies the NEQ predicate on the "name" field.
func NameNEQ(v string) predicate.Region {
	return predicate.Region(sql.FieldNEQ(FieldName, v))
}

// NameIn applies the In predicate on the "name" field.
func NameIn(vs ...string) predicate.Region {
	return predicate.Region(sql.FieldIn(FieldName, vs...))
}

// NameNotIn applies the NotIn predicate on the "name" field.
func NameNotIn(vs ...string) predicate.Region {
	return predicate.Region(sql.FieldNotIn(FieldName, vs...))
}

// NameGT applies the GT predicate on the "name" field.
func NameGT(v string) predicate.Region {
	return predicate.Region(sql.FieldGT(FieldName, v))
}

// NameGTE applies the GTE predicate on the "name" field.
func NameGTE(v string) predicate.Region {
	return predicate.Region(sql.FieldGTE(FieldName, v))
}

// NameLT applies the LT predicate on the "name" field.
func NameLT(v string) predicate.Region {
	return predicate.Region(sql.FieldLT(FieldName, v))
}

// NameLTE applies the LTE predicate on the "name" field.
func NameLTE(v string) predicate.Region {
	return predicate.Region(sql.FieldLTE(FieldName, v))
}

// NameContains applies the Contains predicate on the "name" field.
func NameContains(v string) predicate.Region {
	return predicate.Region(sql.FieldContains(FieldName, v))
}

// NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasPrefix(v string) predicate.Region {
	return predicate.Region(sql.FieldHasPrefix(FieldName, v))
}

// NameHasSuffix applies the HasSuffix predicate on the "name" field.
func NameHasSuffix(v string) predicate.Region {
	return predicate.Region(sql.FieldHasSuffix(FieldName, v))
}

// NameEqualFold applies the EqualFold predicate on the "name" field.
func NameEqualFold(v string) predicate.Region {
	return predicate.Region(sql.FieldEqualFold(FieldName, v))
}

// NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameContainsFold(v string) predicate.Region {
	return predicate.Region(sql.FieldContainsFold(FieldName, v))
}

// ParentRegionEQ applies the EQ predicate on the "parentRegion" field.
func ParentRegionEQ(v string) predicate.Region {
	return predicate.Region(sql.FieldEQ(FieldParentRegion, v))
}

// ParentRegionNEQ applies the NEQ predicate on the "parentRegion" field.
func ParentRegionNEQ(v string) predicate.Region {
	return predicate.Region(sql.FieldNEQ(FieldParentRegion, v))
}

// ParentRegionIn applies the In predicate on the "parentRegion" field.
func ParentRegionIn(vs ...string) predicate.Region {
	return predicate.Region(sql.FieldIn(FieldParentRegion, vs...))
}

// ParentRegionNotIn applies the NotIn predicate on the "parentRegion" field.
func ParentRegionNotIn(vs ...string) predicate.Region {
	return predicate.Region(sql.FieldNotIn(FieldParentRegion, vs...))
}

// ParentRegionGT applies the GT predicate on the "parentRegion" field.
func ParentRegionGT(v string) predicate.Region {
	return predicate.Region(sql.FieldGT(FieldParentRegion, v))
}

// ParentRegionGTE applies the GTE predicate on the "parentRegion" field.
func ParentRegionGTE(v string) predicate.Region {
	return predicate.Region(sql.FieldGTE(FieldParentRegion, v))
}

// ParentRegionLT applies the LT predicate on the "parentRegion" field.
func ParentRegionLT(v string) predicate.Region {
	return predicate.Region(sql.FieldLT(FieldParentRegion, v))
}

// ParentRegionLTE applies the LTE predicate on the "parentRegion" field.
func ParentRegionLTE(v string) predicate.Region {
	return predicate.Region(sql.FieldLTE(FieldParentRegion, v))
}

// ParentRegionContains applies the Contains predicate on the "parentRegion" field.
func ParentRegionContains(v string) predicate.Region {
	return predicate.Region(sql.FieldContains(FieldParentRegion, v))
}

// ParentRegionHasPrefix applies the HasPrefix predicate on the "parentRegion" field.
func ParentRegionHasPrefix(v string) predicate.Region {
	return predicate.Region(sql.FieldHasPrefix(FieldParentRegion, v))
}

// ParentRegionHasSuffix applies the HasSuffix predicate on the "parentRegion" field.
func ParentRegionHasSuffix(v string) predicate.Region {
	return predicate.Region(sql.FieldHasSuffix(FieldParentRegion, v))
}

// ParentRegionIsNil applies the IsNil predicate on the "parentRegion" field.
func ParentRegionIsNil() predicate.Region {
	return predicate.Region(sql.FieldIsNull(FieldParentRegion))
}

// ParentRegionNotNil applies the NotNil predicate on the "parentRegion" field.
func ParentRegionNotNil() predicate.Region {
	return predicate.Region(sql.FieldNotNull(FieldParentRegion))
}

// ParentRegionEqualFold applies the EqualFold predicate on the "parentRegion" field.
func ParentRegionEqualFold(v string) predicate.Region {
	return predicate.Region(sql.FieldEqualFold(FieldParentRegion, v))
}

// ParentRegionContainsFold applies the ContainsFold predicate on the "parentRegion" field.
func ParentRegionContainsFold(v string) predicate.Region {
	return predicate.Region(sql.FieldContainsFold(FieldParentRegion, v))
}

// Latitude1EQ applies the EQ predicate on the "latitude1" field.
func Latitude1EQ(v float64) predicate.Region {
	return predicate.Region(sql.FieldEQ(FieldLatitude1, v))
}

// Latitude1NEQ applies the NEQ predicate on the "latitude1" field.
func Latitude1NEQ(v float64) predicate.Region {
	return predicate.Region(sql.FieldNEQ(FieldLatitude1, v))
}

// Latitude1In applies the In predicate on the "latitude1" field.
func Latitude1In(vs ...float64) predicate.Region {
	return predicate.Region(sql.FieldIn(FieldLatitude1, vs...))
}

// Latitude1NotIn applies the NotIn predicate on the "latitude1" field.
func Latitude1NotIn(vs ...float64) predicate.Region {
	return predicate.Region(sql.FieldNotIn(FieldLatitude1, vs...))
}

// Latitude1GT applies the GT predicate on the "latitude1" field.
func Latitude1GT(v float64) predicate.Region {
	return predicate.Region(sql.FieldGT(FieldLatitude1, v))
}

// Latitude1GTE applies the GTE predicate on the "latitude1" field.
func Latitude1GTE(v float64) predicate.Region {
	return predicate.Region(sql.FieldGTE(FieldLatitude1, v))
}

// Latitude1LT applies the LT predicate on the "latitude1" field.
func Latitude1LT(v float64) predicate.Region {
	return predicate.Region(sql.FieldLT(FieldLatitude1, v))
}

// Latitude1LTE applies the LTE predicate on the "latitude1" field.
func Latitude1LTE(v float64) predicate.Region {
	return predicate.Region(sql.FieldLTE(FieldLatitude1, v))
}

// Latitude1IsNil applies the IsNil predicate on the "latitude1" field.
func Latitude1IsNil() predicate.Region {
	return predicate.Region(sql.FieldIsNull(FieldLatitude1))
}

// Latitude1NotNil applies the NotNil predicate on the "latitude1" field.
func Latitude1NotNil() predicate.Region {
	return predicate.Region(sql.FieldNotNull(FieldLatitude1))
}

// Longitude1EQ applies the EQ predicate on the "longitude1" field.
func Longitude1EQ(v float64) predicate.Region {
	return predicate.Region(sql.FieldEQ(FieldLongitude1, v))
}

// Longitude1NEQ applies the NEQ predicate on the "longitude1" field.
func Longitude1NEQ(v float64) predicate.Region {
	return predicate.Region(sql.FieldNEQ(FieldLongitude1, v))
}

// Longitude1In applies the In predicate on the "longitude1" field.
func Longitude1In(vs ...float64) predicate.Region {
	return predicate.Region(sql.FieldIn(FieldLongitude1, vs...))
}

// Longitude1NotIn applies the NotIn predicate on the "longitude1" field.
func Longitude1NotIn(vs ...float64) predicate.Region {
	return predicate.Region(sql.FieldNotIn(FieldLongitude1, vs...))
}

// Longitude1GT applies the GT predicate on the "longitude1" field.
func Longitude1GT(v float64) predicate.Region {
	return predicate.Region(sql.FieldGT(FieldLongitude1, v))
}

// Longitude1GTE applies the GTE predicate on the "longitude1" field.
func Longitude1GTE(v float64) predicate.Region {
	return predicate.Region(sql.FieldGTE(FieldLongitude1, v))
}

// Longitude1LT applies the LT predicate on the "longitude1" field.
func Longitude1LT(v float64) predicate.Region {
	return predicate.Region(sql.FieldLT(FieldLongitude1, v))
}

// Longitude1LTE applies the LTE predicate on the "longitude1" field.
func Longitude1LTE(v float64) predicate.Region {
	return predicate.Region(sql.FieldLTE(FieldLongitude1, v))
}

// Longitude1IsNil applies the IsNil predicate on the "longitude1" field.
func Longitude1IsNil() predicate.Region {
	return predicate.Region(sql.FieldIsNull(FieldLongitude1))
}

// Longitude1NotNil applies the NotNil predicate on the "longitude1" field.
func Longitude1NotNil() predicate.Region {
	return predicate.Region(sql.FieldNotNull(FieldLongitude1))
}

// Latitude2EQ applies the EQ predicate on the "latitude2" field.
func Latitude2EQ(v float64) predicate.Region {
	return predicate.Region(sql.FieldEQ(FieldLatitude2, v))
}

// Latitude2NEQ applies the NEQ predicate on the "latitude2" field.
func Latitude2NEQ(v float64) predicate.Region {
	return predicate.Region(sql.FieldNEQ(FieldLatitude2, v))
}

// Latitude2In applies the In predicate on the "latitude2" field.
func Latitude2In(vs ...float64) predicate.Region {
	return predicate.Region(sql.FieldIn(FieldLatitude2, vs...))
}

// Latitude2NotIn applies the NotIn predicate on the "latitude2" field.
func Latitude2NotIn(vs ...float64) predicate.Region {
	return predicate.Region(sql.FieldNotIn(FieldLatitude2, vs...))
}

// Latitude2GT applies the GT predicate on the "latitude2" field.
func Latitude2GT(v float64) predicate.Region {
	return predicate.Region(sql.FieldGT(FieldLatitude2, v))
}

// Latitude2GTE applies the GTE predicate on the "latitude2" field.
func Latitude2GTE(v float64) predicate.Region {
	return predicate.Region(sql.FieldGTE(FieldLatitude2, v))
}

// Latitude2LT applies the LT predicate on the "latitude2" field.
func Latitude2LT(v float64) predicate.Region {
	return predicate.Region(sql.FieldLT(FieldLatitude2, v))
}

// Latitude2LTE applies the LTE predicate on the "latitude2" field.
func Latitude2LTE(v float64) predicate.Region {
	return predicate.Region(sql.FieldLTE(FieldLatitude2, v))
}

// Latitude2IsNil applies the IsNil predicate on the "latitude2" field.
func Latitude2IsNil() predicate.Region {
	return predicate.Region(sql.FieldIsNull(FieldLatitude2))
}

// Latitude2NotNil applies the NotNil predicate on the "latitude2" field.
func Latitude2NotNil() predicate.Region {
	return predicate.Region(sql.FieldNotNull(FieldLatitude2))
}

// Longitude2EQ applies the EQ predicate on the "longitude2" field.
func Longitude2EQ(v float64) predicate.Region {
	return predicate.Region(sql.FieldEQ(FieldLongitude2, v))
}

// Longitude2NEQ applies the NEQ predicate on the "longitude2" field.
func Longitude2NEQ(v float64) predicate.Region {
	return predicate.Region(sql.FieldNEQ(FieldLongitude2, v))
}

// Longitude2In applies the In predicate on the "longitude2" field.
func Longitude2In(vs ...float64) predicate.Region {
	return predicate.Region(sql.FieldIn(FieldLongitude2, vs...))
}

// Longitude2NotIn applies the NotIn predicate on the "longitude2" field.
func Longitude2NotIn(vs ...float64) predicate.Region {
	return predicate.Region(sql.FieldNotIn(FieldLongitude2, vs...))
}

// Longitude2GT applies the GT predicate on the "longitude2" field.
func Longitude2GT(v float64) predicate.Region {
	return predicate.Region(sql.FieldGT(FieldLongitude2, v))
}

// Longitude2GTE applies the GTE predicate on the "longitude2" field.
func Longitude2GTE(v float64) predicate.Region {
	return predicate.Region(sql.FieldGTE(FieldLongitude2, v))
}

// Longitude2LT applies the LT predicate on the "longitude2" field.
func Longitude2LT(v float64) predicate.Region {
	return predicate.Region(sql.FieldLT(FieldLongitude2, v))
}

// Longitude2LTE applies the LTE predicate on the "longitude2" field.
func Longitude2LTE(v float64) predicate.Region {
	return predicate.Region(sql.FieldLTE(FieldLongitude2, v))
}

// Longitude2IsNil applies the IsNil predicate on the "longitude2" field.
func Longitude2IsNil() predicate.Region {
	return predicate.Region(sql.FieldIsNull(FieldLongitude2))
}

// Longitude2NotNil applies the NotNil predicate on the "longitude2" field.
func Longitude2NotNil() predicate.Region {
	return predicate.Region(sql.FieldNotNull(FieldLongitude2))
}

// OsmDataIsNil applies the IsNil predicate on the "osmData" field.
func OsmDataIsNil() predicate.Region {
	return predicate.Region(sql.FieldIsNull(FieldOsmData))
}

// OsmDataNotNil applies the NotNil predicate on the "osmData" field.
func OsmDataNotNil() predicate.Region {
	return predicate.Region(sql.FieldNotNull(FieldOsmData))
}

// HasRegionType applies the HasEdge predicate on the "regionType" edge.
func HasRegionType() predicate.Region {
	return predicate.Region(func(s *sql.Selector) {
		step := sqlgraph.NewStep(
			sqlgraph.From(Table, FieldID),
			sqlgraph.Edge(sqlgraph.M2O, false, RegionTypeTable, RegionTypeColumn),
		)
		sqlgraph.HasNeighbors(s, step)
	})
}

// HasRegionTypeWith applies the HasEdge predicate on the "regionType" edge with a given conditions (other predicates).
func HasRegionTypeWith(preds ...predicate.RegionType) predicate.Region {
	return predicate.Region(func(s *sql.Selector) {
		step := newRegionTypeStep()
		sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
			for _, p := range preds {
				p(s)
			}
		})
	})
}

// HasAccountId applies the HasEdge predicate on the "accountId" edge.
func HasAccountId() predicate.Region {
	return predicate.Region(func(s *sql.Selector) {
		step := sqlgraph.NewStep(
			sqlgraph.From(Table, FieldID),
			sqlgraph.Edge(sqlgraph.M2O, false, AccountIdTable, AccountIdColumn),
		)
		sqlgraph.HasNeighbors(s, step)
	})
}

// HasAccountIdWith applies the HasEdge predicate on the "accountId" edge with a given conditions (other predicates).
func HasAccountIdWith(preds ...predicate.User) predicate.Region {
	return predicate.Region(func(s *sql.Selector) {
		step := newAccountIdStep()
		sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
			for _, p := range preds {
				p(s)
			}
		})
	})
}

// And groups predicates with the AND operator between them.
func And(predicates ...predicate.Region) predicate.Region {
	return predicate.Region(sql.AndPredicates(predicates...))
}

// Or groups predicates with the OR operator between them.
func Or(predicates ...predicate.Region) predicate.Region {
	return predicate.Region(sql.OrPredicates(predicates...))
}

// Not applies the not operator on the given predicate.
func Not(p predicate.Region) predicate.Region {
	return predicate.Region(sql.NotPredicates(p))
}
